package com.itheima.common;

/**
 * @author :WuJunJie
 * packageName :com.itheima.common
 * fileName :Code
 * creationTime :2022-11-20 18:42
 */

public enum Code {
    //四个枚举类返回四个数字
    Created(201) {}, Unauthorized(401) {}, Forbidden(403) {}, NotFound(404) {},
    NOToken(0){};
    private Integer code;
    Code() {
    }
    Code(Integer code) {
        this.code = code;
    }

    public Integer getCode() {
        return this.code;
    }

}
